#include "cxx_skip_list.h"
#include <stdio.h>
using namespace ds_cxx;
int main()
{
    SkipList<int> sp;

    for(int i=0;i<100;++i)
    {
        sp.Add(i,i);
    }

    if(sp.Search(5))
    {
        printf("search 5 exist\n");
    }

    if(sp.Erase(5))
    {
        printf("erase 5 success\n");
    }

    if(!sp.Search(5))
    {
        printf("search 5 not exist\n");
    }

    if(!sp.Search(110))
    {
        printf("search 110 not exist\n");
    }

    printf("skip list depth: %u\n",sp.Depth());
    printf("skip list size: %u\n",sp.Size());

    return 0;
}